package org.hcyspartnoc.luoxin.pojo.dto.service;

import jakarta.validation.constraints.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hcyspartnoc.luoxin.common.constant.RegexpConstant;
import org.hcyspartnoc.luoxin.common.enums.service.ServiceCounselorOrderServiceTypeEnum;

@Data
@Accessors(chain = true)
@NoArgsConstructor
public class ServiceCounselorOrderAddDto {
    @NotBlank(message = "咨询师id不能为空")
    @Pattern(regexp = RegexpConstant.COUNSELOR_ID, message = "请输入正确的咨询师id")
    private String counselorId;
    @NotNull(message = "服务类型")
    private ServiceCounselorOrderServiceTypeEnum serviceTypeE; // 假设这里的类型足够表示chat, audio, video
    @NotNull(message = "服务时间")
    @Min(value = 1, message = "服务时间最少1分钟")
    @Max(value = 60, message = "服务时间最最多60分钟")
    private Integer serviceDuration;
    @NotNull(message = "预约时间不能为空")
    @Pattern(regexp = "\\d+",message = "请输入正确的时间戳")
    private String scheduledTimestamp;
}
